/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class GasWaterHeater {
    static categoryCode = '010040003';

    static categoryName = '燃气热水器';

    device = {};

    opts = {};

    _to = undefined;

    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device;
        this.opts = opts;
        this._to = to;
    }

    get categoryCode() {
        return GasWaterHeater.categoryCode;
    }

    get categoryName() {
        return GasWaterHeater.categoryName;
    }

    getAirPressure(params) {
        return command({
            method: 'getAirPressure',
            methodId: 'pNnZFmin',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getBathMode(params) {
        return command({
            method: 'getBathMode',
            methodId: 'p0cr80Xz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCOAlarm(params) {
        return command({
            method: 'getCOAlarm',
            methodId: 'pqYwmPwM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getChildLock(params) {
        return command({
            method: 'getChildLock',
            methodId: 'ptRSCYAk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCurrentWaterTemperature(params) {
        return command({
            method: 'getCurrentWaterTemperature',
            methodId: 'pXZuHluE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getEnergySavingMode(params) {
        return command({
            method: 'getEnergySavingMode',
            methodId: 'pkpDnu1R',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFreezeAlarm(params) {
        return command({
            method: 'getFreezeAlarm',
            methodId: 'UODeNjpP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getGasConsumptionInThePastDay(params) {
        return command({
            method: 'getGasConsumptionInThePastDay',
            methodId: 'UaMCoOLm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getGasConsumptionInThePastHour(params) {
        return command({
            method: 'getGasConsumptionInThePastHour',
            methodId: 'Unfc9UWl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSeasonalMode(params) {
        return command({
            method: 'getSeasonalMode',
            methodId: 'p3delsEo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSelfCleaningMode(params) {
        return command({
            method: 'getSelfCleaningMode',
            methodId: 'pBTQTKQI',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'phEqdqVq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getVariableFrequencyHeating(params) {
        return command({
            method: 'getVariableFrequencyHeating',
            methodId: 'pz93I4yW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWaterConsumptionInThePastDay(params) {
        return command({
            method: 'getWaterConsumptionInThePastDay',
            methodId: 'UmaSzfb5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWaterConsumptionInThePastHour(params) {
        return command({
            method: 'getWaterConsumptionInThePastHour',
            methodId: 'pWG0KwMK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWaterPressure(params) {
        return command({
            method: 'getWaterPressure',
            methodId: 'pj7xj529',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWaterTemperature(params) {
        return command({
            method: 'getWaterTemperature',
            methodId: 'pdN7PD51',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setBathMode(params) {
        return command({
            method: 'setBathMode',
            methodId: 'pDrhJxgx',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setChildLock(params) {
        return command({
            method: 'setChildLock',
            methodId: 'ppAXwfML',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setEnergySavingMode(params) {
        return command({
            method: 'setEnergySavingMode',
            methodId: 'pGoxs3f3',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSeasonalMode(params) {
        return command({
            method: 'setSeasonalMode',
            methodId: 'pZgR0VvV',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSelCleaningMode(params) {
        return command({
            method: 'setSelCleaningMode',
            methodId: 'pgh0vbYb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'peH3AFwZ',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setVariableFrequencyHeating(params) {
        return command({
            method: 'setVariableFrequencyHeating',
            methodId: 'p1vFcGpG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setWaterTemperature(params) {
        return command({
            method: 'setWaterTemperature',
            methodId: 'pUPQ5OWS',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default GasWaterHeater;
